home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group99a.txt / 000183_icon-group-sender _Thu Sep 2 13:19:32 1999.msg < prev    next >
Internet Message Format  |  2000-09-20  |  3KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id NAA00261
  4.     for icon-group-addresses; Thu, 2 Sep 1999 13:19:13 -0700 (MST)
  5. Message-Id: <199909022019.NAA00261@baskerville.CS.Arizona.EDU>
  6. From: "Frank Lhota" <lhotaf@lexma.meitech.com>
  7. To: "Garry" <memphis@macconnect.com>, <icon-group@optima.CS.Arizona.EDU>
  8. Subject: Re: Is open(..,"b") broken in MPW Icon 9.0?
  9. Date: Thu, 2 Sep 1999 12:32:19 -0400
  10. X-Priority: 3
  11. X-MSMail-Priority: Normal
  12. X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
  13. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  14. Status: RO
  15.  
  16. The Icon file management routines are based on the C <stdio.h> facilitates.
  17. The Icon open mode specifications are mapped to the C fopen mode parameter,
  18. and unfortunately the available fopen modes vary from platform to platform.
  19.  
  20. Do you have a C compiler for the Macintosh MPW environment? If so, try to
  21. see which C fopen modes will give you the desired results. From this, we can
  22. figure out the how to fix the Icon run time code.
  23.  
  24. ----- Original Message -----
  25. From: Garry <memphis@macconnect.com>
  26. To: <icon-group@optima.CS.Arizona.EDU>
  27. Sent: Wednesday, September 01, 1999 11:32 PM
  28. Subject: Is open(..,"b") broken in MPW Icon 9.0?
  29.  
  30.  
  31. > The most up-to-date Icon available for the Macintosh MPW environment is
  32. > version 9.0, which I think may have been implemented by Bob Alexander
  33. > (email address?). I've implemented most of an outline processor / note
  34. > organizer for MPW using Icon; maybe I'll proceed to try using it for
  35. > keeping source code in outline form, BUT after more than a month of fun
  36. > with Icon I've run into a problem!!  I can't open a file for update
  37. > (read/write).  When I follow the Icon practice of opening my file with
  38. > "b" mode I find that I can read it but I can not write to the file.  For
  39. > example if I execute
  40. >    f := open( "Testfile", "b" )
  41. >    seek( f )
  42. >    writes( f, "**" )
  43. > where "Testfile" is a small test file created previously, then I get the
  44. > message
  45. >    Run-time error 214
  46. >    input/output error
  47. >
  48. > I've tried specifying "r+" mode or "b+r" or "ub" mode without success.
  49. > As a test I opened the same file in "w" mode and proved that I was able
  50. > to write it (destroying the previous contents) but I can not find a way
  51. > to write to random locations.
  52. >
  53. > BTW, is any progress being made on Icon 9.3 for Macintosh?
  54. >
  55. > Advice, or just sympathy, will be appreciated.  Right now my fall-back
  56. > solution is to rewrite the entire file just to update the 8 bytes which
  57. > holds my note ID counter.
  58. >
  59. > --
  60. > Garry
  61. > Tech Writer & Freelance Programmer
  62.  
  63.